
<!-- title -->
<section class="process_title" ng-switch on="pagetheme">
    <i ng-switch-when="refurbish">产品翻新</i>
    <i ng-switch-when="repair">产品维修</i>
    <i ng-switch-when="detect">产品检测</i>
    <i ng-switch-when="recycle">产品回收</i>
    <i ng-switch-when="exchange">产品换款</i>
</section>

<form name="submitForm">
    <main class="content bottom" ng-switch on="pagetheme">
        <!-- 翻新流程 -->
        <section class="process" ng-switch-when="refurbish">
            <b class="right"></b>
            <b class="left"></b>
            <ul>
                <li class="hover">
                    <span><i class="t01"></i></span>
                    <em>拍照</em>
                </li>
                <li class="hover">
                    <span><i class="t02"></i></span>
                    <em>提交订单</em>
                </li>
                <li>
                    <span><i class="t03"></i></span>
                    <em>门店收货</em>
                </li>
                <li>
                    <span><i class="t04"></i></span>
                    <em>检测</em>
                </li>
                <li>
                    <span><i class="t08"></i></span>
                    <em>评价</em>
                </li>
                <li>
                    <span><i class="t07"></i></span>
                    <em>收货验证</em>
                </li>
                <li>
                    <span><i class="t06"></i></span>
                    <em>拍照交货</em>
                </li>
                <li>
                    <span><i class="t11"></i></span>
                    <em>翻新</em>
                </li>
            </ul>
        </section>
        <!-- 维修流程 -->
        <section class="process fanx" ng-switch-when="repair">
            <b class="right"></b>
            <b class="left seu"></b>
            <b class="muye"></b>
            <b class="sec"></b>
            <ul>
                <li class="hover">
                    <span><i class="t01"></i></span>
                    <em>拍照</em>
                </li>
                <li class="hover">
                    <span><i class="t10"></i></span>
                    <em>定价</em>
                </li>
                <li class="hover">
                    <span><i class="t02"></i></span>
                    <em>提交订单</em>
                </li>
                <li>
                    <span><i class="t03"></i></span>
                    <em>门店收货</em>
                </li>
                <li>
                    <span><i class="t07"></i></span>
                    <em>收货验收</em>
                </li>
                <li>
                    <span><i class="t06"></i></span>
                    <em>拍照交货</em>
                </li>
                <li>
                    <span><i class="t12"></i></span>
                    <em>维修</em>
                </li>
                <li>
                    <span><i class="t04"></i></span>
                    <em>检测</em>
                </li>
                <li>
                    <span><i class="t08"></i></span>
                    <em>评价</em>
                </li>
            </ul>
        </section>
        <!-- 检测流程 -->
        <section class="process testing" ng-switch-when="detect">
            <b class="right"></b>
            <b class="left"></b>
            <ul>
                <li class="hover">
                    <span><i class="t01"></i></span>
                    <em>拍照</em>
                </li>
                <li class="hover">
                    <span><i class="t02"></i></span>
                    <em>提交订单</em>
                </li>
                <li>
                    <span><i class="t03"></i></span>
                    <em>门店收货</em>
                </li>
                <li>
                    <span><i class="t04"></i></span>
                    <em>检测</em>
                </li>
                <li>
                    <span><i class="t06"></i></span>
                    <em>拍照交货</em>
                </li>
                <li>
                    <span><i class="t07"></i></span>
                    <em>收货验证</em>
                </li>
                <li>
                    <span><i class="t08"></i></span>
                    <em>评价</em>
                </li>
            </ul>
        </section>
        <!-- 回收流程 -->
        <section class="process" ng-switch-when="recycle">
            <b class="right"></b>
            <b class="left"></b>
            <ul>
                <li class="hover">
                    <span><i class="t13"></i></span>
                    <em>估价</em>
                </li>
                <li class="hover">
                    <span><i class="t01"></i></span>
                    <em>拍照</em>
                </li>
                <li class="hover">
                    <span><i class="t09"></i></span>
                    <em>提交订单</em>
                </li>
                <li>
                    <span><i class="t03"></i></span>
                    <em>门店收货</em>
                </li>
                <li>
                    <span><i class="t08"></i></span>
                    <em>评价</em>
                </li>
                <li>
                    <span><i class="t14"></i></span>
                    <em>回收</em>
                </li>
                <li>
                    <span><i class="t10"></i></span>
                    <em>实际定价</em>
                </li>
                <li>
                    <span><i class="t04"></i></span>
                    <em>检测</em>
                </li>
            </ul>
        </section>
        <!--换款流程 -->
        <section class="process fanx" ng-switch-when="exchange">
            <b class="right"></b>
            <b class="left seu"></b>
            <b class="muye"></b>
            <b class="sec"></b>
            <ul>
                <li class="hover">
                    <span><i class="t13"></i></span>
                    <em>估价</em>
                </li>
                <li class="hover">
                    <span><i class="t01"></i></span>
                    <em>拍照</em>
                </li>
                <li class="hover">
                    <span><i class="t09"></i></span>
                    <em>提交订单</em>
                </li>
                <li>
                    <span><i class="t03"></i></span>
                    <em>门店收货</em>
                </li>
                <li>
                    <span><i class="t07"></i></span>
                    <em>收货验收</em>
                </li>
                <li>
                    <span><i class="t06"></i></span>
                    <em>拍照交货</em>
                </li>
                <li>
                    <span><i class="t10"></i></span>
                    <em>实际定价</em>
                </li>
                <li>
                    <span><i class="t04"></i></span>
                    <em>检测</em>
                </li>
                <li>
                    <span><i class="t08"></i></span>
                    <em>评价</em>
                </li>
            </ul>
        </section>
        <!-- 店铺信息及方式 -->
        <dl class="add_product">
            <dd>
                <em>送货方式：</em>
                <span class="check" ng-click="addsendway('001')">
                    <input id="1" value="sendwayValue[0]" type="radio" ng-model="sendway" name="sendway"/>
                    <label for="1" class="check_label " ng-class="{false:'on'}[sendwayFlag]">
                        <i class="checkbox_icon"></i>
                    </label>
                    <u>邮寄</u>
                </span>
                <span class="check" ng-click="addsendway('002')">
                    <input id="2" value="sendwayValue[1]" type="radio" ng-model="sendway" name="sendway"/>
                    <label for="2" class="check_label" ng-class="{true:'on'}[sendwayFlag]">
                        <i class="checkbox_icon"></i>
                    </label>
                    <u>送到店</u>
                </span>
            </dd>
            <dd>
                <em>取货方式：</em>
                <span class="check" ng-click="addgetway('001')">
                    <input id="3" value="getwayValue[0]" type="radio" ng-model="getway" name="getway"/>
                    <label for="3" class="check_label" ng-class="{false:'on'}[getwayFlag]">
                        <i class="checkbox_icon"></i>
                    </label>
                    <u>邮寄</u>
                </span>
                <span class="check" ng-click="addgetway('002')">
                    <input id="4" value="getwayValue[1]" type="radio" ng-model="getway" name="getway"/>
                    <label for="4" class="check_label" ng-class="{true:'on'}[getwayFlag]">
                        <i class="checkbox_icon"></i>
                    </label>
                    <u>到店取</u>
                </span>
            </dd>
            <dd>
                <em>选择门店：</em>
                <span>
                    <input select2 ng-model="order.storeId" select2-model="selectedStore" config="storeConfig" class="form-control" type="text" ng-change="getStoreAddress(order.storeId)" required/>
                </span>
            </dd>
        </dl>
        <section class="address add" >
            <a href="">
                <p>门店地址：{{order.address}}</p>
            </a>
            <!--<section id="containerMaps">-->
                <!--<section style=""id="" id="containerMap" ng-if="order.storeId==item.id" >-->
                <!--</section>-->
            <!--</section>-->


        </section>

        <!-- 收货地址 -->
        <section class="numbers">
            <section id="tad" class="numbers_button">
                <span style="width: 100%" ng-click="wxopenAddress()"><a href="javascript:">新增收货地址</a></span>
            </section>
        </section>
        <!-- 添加地址 -->
        <section class="address add" ng-if="show">
            <i class="icon">&#xe617;</i>
            <a href="">
                <span class="title">
                    <em>收货人：{{address.userName}}</em>
                    <em>{{address.telNumber}}</em>
                </span>
                <p>收货地址：{{address.provinceName}}{{address.cityName}}{{address.countryName}}{{address.detailInfo}}</p>
            </a>
        </section>



        <!-- 产品信息 -->
        <div ng-if="pagetheme != 'repair'&&pagetheme != 'exchange'">
            <dl class="add_product">
                <dd>
                    <em>产品材质：</em>
                    <span>
                        <input select2 ng-model="product.firstCatogoryId" select2-model="selectedStuff" config="stuffConfig" class="form-control" type="text" ng-change="getSecondCategories(product.firstCatogoryId)" required/>
                    </span>
                </dd>
                <dd>
                    <em>产品类别：</em>
                    <span>
                        <input select2 ng-model="product.secondCatogoryId" select2-model="selectedType" config="typeConfig" class="form-control" type="text" required/>
                    </span>
                </dd>
                <dd>
                    <em>数量：</em>
                    <span>
                        <input placeholder="必填项" type="number" ng-model="product.num" ng-change="calcTotalPrice(product.num)" required  ng-class={true:"has-error",false:"has-no-error"}[errorFlag]>
                    </span>
                </dd>
                <dd>
                    <em>备注：</em>
                    <span><input placeholder="可选项" type="text" ng-model="product.memo"></span>
                </dd>
                <dd ng-show="errorFlag">
                    <em></em>
                    <span ng-class={true:"error",false:""}[errorFlag]>{{errorInfo}}</span>
                </dd>
            </dl>
        </div>
        <section class="prompt_tisi"  ng-if="pagetheme != 'recycle'&&pagetheme != 'exchange'">
            <p>免责说明：以上服务只含清洗、抛光、电镀、翻新过程会出现损耗（具体视货品款式）</p>
        </section>
    </main>
    <!-- FOOTER -->



    <footer class="submit">
        <span class="total" ng-if="pagetheme != 'exchange'">合计： {{totalprice | currency:'￥'}} </span>
	<span class="button">
        <a href=""  ng-click="goback()">上一步</a>
        <a ng-disabled="!(submitForm.$valid&&verify)||useful" ng-click="useful||procreceive(submitForm.$valid&&verify)" ng-class={true:"gray",false:""}[useful]>立即下单</a>
    </span>
    </footer>
</form>

